
import React, { Suspense } from "react";

import { useRoutes } from "react-router-dom";

import RouterArray from "./router/index"

import "./App.css"

function App(){
  return(
    <div>
      <Suspense fallback={<div>{"Loading"}</div>}>
      {useRoutes(RouterArray)}
      </Suspense>
    </div>
  )
}

export default App